package com.jackstraw.jack_base.datasource.elasticsearch.entity;


import lombok.Data;
import lombok.ToString;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@ToString
public class Cat {

    /**
     * 猫的名称
     */
    @Field(type = FieldType.Keyword)
    private String name;

    /**
     * 猫的年龄
     */
    @Field(type = FieldType.Integer)
    private Integer age;

}
